﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Receiving.aspx.cs" Inherits="WMS6.Web.Inbound.Receiving" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Receiving</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>      
    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newReceiving()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Receiving.aspx?from=" + escape(from);
            return false;
        }
       
        function popManualPutAway()
        {
            var lang = self.parent.frames['banner'].document.getElementById("hdnPerfLanguage").value;
            var style = self.parent.frames['banner'].document.getElementById("henPerfStyle").value;
            setTab('one',3,4);
            var rtnValue = window.showModalDialog('ManualPutaway.aspx',lang+','+style,'dialogWidth=810px;dialogHeight=500px;center=yes;resizable=yes;status=no;')
            if(rtnValue != null && rtnValue.toString() != "")
            {
                var temp = rtnValue.split(',');
                if(temp.length > 1)
                {
                    rtnValue = temp[0];
                }
                else 
                {
                    document.getElementById("lblMsg").innerText = '<%=GetGlobalMsgResource("F4200_001") %>';
                }
                document.getElementById("hdnRtnValue").value = rtnValue;
                document.getElementById("btnRefresh").click();
            }
        }
        
        //弹出 打印 入库验收单 的窗口
        function popPrintReceipt()
        {
            var receiptID = document.getElementById("txtReceiptID").value;
             var OwnerID= document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=printreceipt&receiptID=' + escape(receiptID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        //弹出 打印 上架工作单 的窗口
        function popPrintPutAway()
        {
            var receiptID = document.getElementById("txtReceiptID").value;
            var OwnerID= document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=printputawayreport&receiptID=' + escape(receiptID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');        
        }
        //弹出 打印 入库验收单 的窗口
        function popPrintReceiptList() {
            var receiptID = document.getElementById("txtReceiptID").value;
            var OwnerID= document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=printreceipthistory&receiptID=' + escape(receiptID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        
        //显示 操作 DIV
        function showAction()
		{	
			var pos = getElementPos("htmlbtnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		//显示 报表 DIV
		function showReport()
		{	
			var pos = getElementPos("htmlbtnReport");	
			document.getElementById("reportDiv").style.top = pos.y+17;
			document.getElementById("reportDiv").style.left = pos.x;  			
			document.getElementById("hiddenReportFlag").value = '1';
		}
		
       function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		}
		//隐藏 报表 DIV
		function hiddenReportDiv()
		{
			var flag = document.getElementById("hiddenReportFlag").value
			if(flag == "1")
			{
				document.getElementById("reportDiv").style.display = "block";
				document.getElementById("hiddenReportFlag").value = '0';
			}
			else 
			{
				document.getElementById("reportDiv").style.display = "none";
			}
		}
		
		//锁屏
		function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
		    
		    //document.getElementById("hdnAction").value = condition;
		    //document.getElementById("btnAction").click();
        }

        function confirmMsg(code) {
            if (code == "F4200_002") {
                if (confirm('<%=GetGlobalMsgResource("F4200_002") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }
    </script>
</head>
<body>
    <form id="F4021" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblASN" runat="server" CssClass="label_header" 
                            Text="入库单" meta:resourcekey="lblASN"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnGoBack%>" onclick="btnGoBack_Click" AccessKey="b" 
                             /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnSave%>"  AccessKey="s"   /></td>
                    <td><asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnRefresh%>"  AccessKey="e" onclick="btnRefresh_Click" 
                           /></td>
                    <td><input id="htmlbtnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>" class="button"  onclick="showAction();" /></td>                    
                    <td><input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>" class="button"  onclick="showReport();" /></td>
                </tr>
            </table>
        </div>
                
        <%--<asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>--%>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,4)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">入库通知</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,4)" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">入库通知明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,4)" id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one3">入库明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL4"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,4)" id="divM4">
                <asp:Label ID="one4" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one4">上架明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR4"></div>
            </div>
        </div>
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblReceiptID" runat="server" CssClass="label" Text="入库通知单号" 
                                 meta:resourcekey="lblReceiptID"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                 meta:resourcekey="lblStatus"></asp:Label></td>
                         <td width="180">
                             <asp:Label ID="lblPOID" runat="server" CssClass="label" Text="采购订单号" 
                                 meta:resourcekey="lblPOID"></asp:Label></td>
                         <td width="180">
                             <asp:Label ID="lblReceiptDate" runat="server" CssClass="label" Text="收货日期" 
                                 meta:resourcekey="lblReceiptDate"></asp:Label></td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtReceiptID" runat="server" CssClass="textbox" MaxLength="30" 
                                 Enabled="False" meta:resourcekey="txtReceiptID"></asp:TextBox>
                         </td>
                         <td>
                             <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                 Enabled="False" meta:resourcekey="ddlStatus"></asp:DropDownList>
                         <td>
                             <asp:TextBox ID="txtPoID" runat="server" CssClass="textbox" MaxLength="30" 
                                 meta:resourcekey="txtPoID"></asp:TextBox></td>
                          <td>
                              <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox" 
                                  MaxLength="30" meta:resourcekey="txtReceiptDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtReceiptDate)"/></td>
                     </tr>                    
                     <tr>
                         <td width="180"> <asp:Label ID="lblOwnerID" runat="server" CssClass="label" 
                                 Text="货主代码" meta:resourcekey="lblOwnerID"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblReceiptType" runat="server" CssClass="label" 
                                 Text="订单类型" meta:resourcekey="lblReceiptType"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblExternalReceiptID" runat="server" 
                                 CssClass="label" Text="外部入库单号" meta:resourcekey="lblExternalReceiptID"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblExceptReceiptDate" runat="server" 
                                 CssClass="label" Text="预期到货日期" meta:resourcekey="lblExceptReceiptDate"></asp:Label></td>
                     </tr>
                     <tr>
                         <td><asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtOwnerID"></asp:TextBox></td>
                         <td><asp:DropDownList ID="ddlReceiptType" runat="server" CssClass="mediumselectbox" 
                                 Enabled="False" meta:resourcekey="ddlReceiptType"></asp:DropDownList></td>
                         <td><asp:TextBox ID="txtExternalReceiptID" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtExternalReceiptID"></asp:TextBox></td>
                         <td><asp:TextBox ID="txtExceptReceiptDate" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtExceptReceiptDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtExceptReceiptDate)"/></td>
                     </tr>
                     <tr>
                         <td width="180"> <asp:Label ID="lblTotalExceptQty" runat="server" CssClass="label" 
                                 Text="总预期量" meta:resourcekey="lblTotalExceptQty"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblTotalReceiptQty" runat="server" CssClass="label" 
                                 Text="总接收量" meta:resourcekey="lblTotalReceiptQty"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblPackingSlipNum" runat="server" CssClass="label" 
                                 Text="装箱单号" meta:resourcekey="lblPackingSlipNum"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblVendorID" runat="server" CssClass="label" 
                                 Text="供应商代码" meta:resourcekey="lblVendorID"></asp:Label></td>
                     </tr>
                     <tr>
                         <td> <asp:TextBox ID="txtTotalExceptQty" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtTotalExceptQty"></asp:TextBox></td>
                         <td><asp:TextBox ID="txtTotalReceiptQty" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtTotalReceiptQty"></asp:TextBox></td>
                         <td><asp:TextBox ID="txtPackingSlipNum" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtPackingSlipNum"></asp:TextBox></td>
                         <td><asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtVendorID"></asp:TextBox></td>
                     </tr>
                     <tr>
                         <td width="180"> <asp:Label ID="lblTotalGrossWeight" runat="server" 
                                 CssClass="label" Text="总毛重" meta:resourcekey="lblTotalGrossWeight"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblTotalCube" runat="server" CssClass="label" 
                                 Text="总体积" meta:resourcekey="lblTotalCube"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblRMA" runat="server" CssClass="label" Text="RMA号" 
                                 meta:resourcekey="lblRMA"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblVendorRef" runat="server" CssClass="label" 
                                 Text="供应商参考信息" meta:resourcekey="lblVendorRef"></asp:Label></td>
                     </tr>
                     <tr>
                         <td> <asp:TextBox ID="txtTotalGrossWeight" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtTotalGrossWeight"></asp:TextBox></td>
                         <td><asp:TextBox ID="txtTotalCube" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtTotalCube"></asp:TextBox></td>
                         <td><asp:TextBox ID="txtRMA" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtRMA"></asp:TextBox></td>
                         <td><asp:TextBox ID="txtVendorRef" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtVendorRef"></asp:TextBox></td>
                     </tr>
                     <tr>
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"><asp:Label ID="lblWaraHouseRef" runat="server" CssClass="label" 
                                 Text="仓库参考信息" meta:resourcekey="lblWaraHouseRef"></asp:Label></td>
                     </tr>
                     <tr>
                         <td></td>
                         <td></td>
                         <td></td>
                         <td><asp:TextBox ID="txtWaraHouseRef" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtWaraHouseRef"></asp:TextBox></td>
                     </tr>
                     <tr style="height:10px;">
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                     </tr>
                 </table>
             </div>
             
             <div id="con_one_2" style="display: none; overflow-x:auto; overflow-y:hidden;">
                 <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td>
                             <table>
                                 <tr>
                                    <td>
                                        <asp:Button ID="btnBatchReceive" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnBatchReceive%>" 
                                            OnClientClick="blockScreen();" OnClick="btnBatchReceive_Click" 
                                            meta:resourcekey="btnBatchReceive" />
                                    </td>
                                     <td>
                                         <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Enabled="False" 
                                             Text="<%$Resources:ButtonResource,btnAddDetail%>"   />
                                     </td>
                                     <td>
                                         <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" 
                                             Enabled="False" Text="<%$Resources:ButtonResource,btnDeleteDetail%>" 
                                             OnClientClick="javascript:if(confirmMsg('F4200_002'))return true;else return false;" 
                                            />
                                     </td>
                                 </tr>
                             </table>
                         </td>
                     </tr>
                     <tr style="height: 10px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr>
                         <td>
                             <div>
                                 <asp:GridView ID="gvReceiptDetail" runat="server" AllowSorting="True" 
                                     AutoGenerateColumns="False" CssClass="gridview"  AllowPaging="True" OnPageIndexChanging="gvReceiptDetail_PageIndexChanging"
                                     DataKeyNames="ReceiptID,ReceiptLineID" oninit="gvReceiptDetail_Init" 
                                     onrowdatabound="gvReceiptDetail_RowDataBound" Width="3150px" 
                                     onsorting="gvReceiptDetail_Sorting" 
                                     meta:resourcekey="gvReceiptDetail" >
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <PagerStyle CssClass="GridViewPageStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                        <%--<asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>--%>
                                         <asp:BoundField  DataField="ReceiptLineID" SortExpression="ReceiptLineID" 
                                             HeaderText="行号" FooterText="行号" meta:resourcekey="ReceiptLineID">
                                             <ItemStyle CssClass="GridViewRowWidth_50" />
                                         </asp:BoundField>
                                         <asp:TemplateField meta:resourcekey="TemplateField">
                                             <HeaderTemplate>
                                                 <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('4021','gvReceiptDetail');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                 <asp:CheckBox ID="CheckBox1" runat="server" 
                                                     onclick="selectAll(this,'gvReceiptDetail');" 
                                                     meta:resourcekey="CheckBox1" />
                                             </HeaderTemplate>
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="chbSelect" runat="server" 
                                                     meta:resourcekey="chbSelect" />
                                             </ItemTemplate>
                                             <FooterTemplate>
                                                 <asp:CheckBox ID="CheckBox2" runat="server" 
                                                     onclick="selectAll(this,'gvReceiptDetail');" 
                                                     meta:resourcekey="CheckBox2" />
                                             </FooterTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:TemplateField HeaderText="收货" FooterText="收货" 
                                             meta:resourcekey="Receiving" >
                                            <ItemTemplate>
                                                <a href='<%# FormatReceiptUrl("ReceivingDetail.aspx?from={0}&rid={1}&rlid={2}&owner={3}&rdate={4}",Eval("ReceiptID").ToString(),Eval("ReceiptLineID").ToString(),Eval("OwnerID").ToString()) %>' target="_self"><img src="../Images/icon_detail_2.gif" class="img" style="border:none 0px blue;" alt="receipt"/></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center"/>
                                        </asp:TemplateField>   
                                         <%--<asp:BoundField DataField="OwnerID" HeaderText="货主" FooterText="货主" 
                                             SortExpression="OwnerID" meta:resourcekey="OwnerID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>--%>
                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" 
                                             SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" 
                                             SortExpression="SkuDescr" meta:resourcekey="SkuDescr" >
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuDescr" runat="server" 
                                                    Text='<%# Eval("SkuDescr").ToString() %>' 
                                                    meta:resourcekey="lblSkuDescr"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_200" />       
                                         </asp:TemplateField>
                                         <asp:TemplateField FooterText="预期量" HeaderText="预期量" 
                                             SortExpression="ExpectedQty" meta:resourcekey="ExpectedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblExpectedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("ExpectedQty").ToString()) %>' 
                                                     meta:resourcekey="lblExpectedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:TemplateField FooterText="接收量" HeaderText="接收量" 
                                             SortExpression="ReceivedQty" meta:resourcekey="ReceivedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblReceivedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("ReceivedQty").ToString()) %>' 
                                                     meta:resourcekey="lblReceivedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" 
                                             SortExpression="PackID" meta:resourcekey="PackID">
                                             <ItemStyle CssClass="GridViewRowWidth_50" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="UomID" HeaderText="单位" FooterText="单位" 
                                             SortExpression="UomID" meta:resourcekey="UomID">
                                             <ItemStyle CssClass="GridViewRowWidth_50" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="StatusD" HeaderText="状态" FooterText="状态" 
                                             SortExpression="StatusD" meta:resourcekey="StatusD">
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="ToLoc" HeaderText="货位" FooterText="货位" 
                                             SortExpression="ToLoc" meta:resourcekey="ToLoc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="VendorID" HeaderText="供应商代码" FooterText="供应商代码" 
                                             SortExpression="VendorID" meta:resourcekey="VendorID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="LpnID" HeaderText="LPN" FooterText="LPN"" 
                                             SortExpression="LpnID" meta:resourcekey="LpnID" ><ItemStyle CssClass="GridViewRowWidth_100" /></asp:BoundField>
                                              <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" SortExpression="RECEIVEDDATE"
                                                    meta:resourcekey="ReceiveDate">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblReceiveDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("RECEIVEDDATE").ToString()) %>'
                                                            meta:resourcekey="lblReceiveDate"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" SortExpression="PRODUCEDATE"
                                                    meta:resourcekey="PRODUCEDATE">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblProduceDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("PRODUCEDATE").ToString()) %>'
                                                            ></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                   <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" SortExpression="EXPIRYDATE"
                                                    meta:resourcekey="EXPIRYDATE">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblExpiryDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("EXPIRYDATE").ToString()) %>'
                                                            ></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                 <asp:BoundField DataField="ExternalLot" HeaderText="供应商代码" FooterText="供应商代码" SortExpression="ExternalLot"
                                                    meta:resourcekey="ExternalLot">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                 <asp:BoundField DataField="LotAttr01" HeaderText="批次属性01" FooterText="批次属性01" SortExpression="LotAttr01"
                                                    meta:resourcekey="LotAttr01">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                  <asp:BoundField DataField="LotAttr02" HeaderText="批次属性02" FooterText="批次属性02" SortExpression="LotAttr02"
                                                    meta:resourcekey="LotAttr02">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                  <asp:BoundField DataField="LotAttr03" HeaderText="批次属性03" FooterText="批次属性03" SortExpression="LotAttr03"
                                                    meta:resourcekey="LotAttr03">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                  <asp:BoundField DataField="LotAttr04" HeaderText="批次属性04" FooterText="批次属性04" SortExpression="LotAttr04"
                                                    meta:resourcekey="LotAttr04">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                  <asp:BoundField DataField="LotAttr05" HeaderText="批次属性05" FooterText="批次属性05" SortExpression="LotAttr05"
                                                    meta:resourcekey="LotAttr05">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                  <asp:BoundField DataField="LotAttr06" HeaderText="批次属性06" FooterText="批次属性06" SortExpression="LotAttr06"
                                                    meta:resourcekey="LotAttr06">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                  <asp:BoundField DataField="LotAttr07" HeaderText="批次属性07" FooterText="批次属性07" SortExpression="LotAttr07"
                                                    meta:resourcekey="LotAttr07">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                  <asp:BoundField DataField="LotAttr08" HeaderText="批次属性08" FooterText="批次属性08" SortExpression="LotAttr08"
                                                    meta:resourcekey="LotAttr08">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                  <asp:BoundField DataField="LotAttr09" HeaderText="批次属性09" FooterText="批次属性09" SortExpression="LotAttr09"
                                                    meta:resourcekey="LotAttr09">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                  <asp:BoundField DataField="LotAttr10" HeaderText="批次属性10" FooterText="批次属性10" SortExpression="LotAttr10"
                                                    meta:resourcekey="LotAttr10">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr style="height:30px;">
                        <td></td>
                        <td></td>
                     </tr>
                 </table>
                     <div style="margin-left: 10px">
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                                 <td class="Result_01">
                                     总计：
                                 </td>
                                 <td class="Result_02">
                                     <table>
                                         <tr>  
                                          <td Style="margin-right: 20px;"> &nbsp; &nbsp; </td>
                                             <td >
                                                 <asp:Label ID="lblTotalExpected" runat="server" Text="预期量:" class="label"></asp:Label><asp:Label
                                                     ID="lblTotalExpectedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                              <td>
                                                 <asp:Label ID="lblTotalReceived" runat="server" Text="接收量:" class="label"></asp:Label><asp:Label
                                                     ID="lblTotalReceivedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                         </tr>
                                     </table>
                                 </td>
                                 <td class="Result_03">
                                 </td>
                             </tr>
                              <tr  style="height:20px">
                                <td></td>
                                </tr>
                         </table>
                     </div>
             </div>
             
             <div id="con_one_3" style="display:none; overflow-x:auto; overflow-y:hidden;">
                 <table width="3600px" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td>
                             <div>
                                 <asp:GridView ID="gvReceiptHistory" runat="server" AllowSorting="True" 
                                     AutoGenerateColumns="False" CssClass="gridview"  AllowPaging="True" OnPageIndexChanging="gvReceiptHistory_PageIndexChanging"
                                     DataKeyNames="TransID,ReceiptID,ReceiptLineID,OwnerID,SkuID,ReceivedQty,CompletedQty,RemainQty,Uom,Loc,CondititonCode,Lpn,PackID,LotID,Status" 
                                     onrowdatabound="gvReceiptHistory_RowDataBound" Width="3600px" 
                                     onselectedindexchanging="gvReceiptHistory_SelectedIndexChanging" oninit="gvReceiptHistory_Init"  
                                     onsorting="gvReceiptHistory_Sorting" 
                                     meta:resourcekey="gvReceiptHistory" >
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <PagerStyle CssClass="GridViewPageStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>
                                         <asp:TemplateField meta:resourcekey="No">
                                             <HeaderTemplate>
                                                 <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('4021','gvReceiptHistory');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                 <asp:CheckBox ID="CheckBox1" runat="server" 
                                                     onclick="selectAll(this,'gvReceiptHistory');" 
                                                     meta:resourcekey="CheckBox1Resource2" />
                                             </HeaderTemplate>
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="chbSelect" runat="server" 
                                                     meta:resourcekey="chbSelectResource2" />
                                             </ItemTemplate>
                                             <FooterTemplate>
                                                 <asp:CheckBox ID="CheckBox2" runat="server" 
                                                     onclick="selectAll(this,'gvReceiptHistory');" 
                                                     meta:resourcekey="CheckBox2Resource2" />
                                             </FooterTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:TemplateField ShowHeader="False" HeaderText="上架" FooterText="上架" 
                                             meta:resourcekey="Puraway" >
                                             <ItemTemplate>
                                                 <asp:LinkButton ID="lnkbtnPuraway" runat="server" CausesValidation="False" 
                                                     CommandName="Select" Text="&lt;img 
                                                     src=&quot;../Images/putaway.gif&quot; class=&quot;img&quot; style=&quot;border:none 0px blue;&quot; 
                                                     alt=&quot;putaway&quot; __designer:mapid=&quot;e83&quot;/&gt;" 
                                                     meta:resourcekey="lnkbtnPuraway"></asp:LinkButton>
                                             </ItemTemplate>
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:BoundField  DataField="ReceiptLineID" SortExpression="ReceiptLineID" 
                                             HeaderText="行号" FooterText="行号" meta:resourcekey="ReceiptLineID">
                                             <ItemStyle CssClass="GridViewRowWidth_50" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="TransID" HeaderText="交易号" FooterText="交易号" 
                                             SortExpression="TransID" meta:resourcekey="TransID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <%--<asp:BoundField DataField="OwnerID" HeaderText="货主" FooterText="货主" 
                                             SortExpression="OwnerID" meta:resourcekey="OwnerID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>--%>
                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" 
                                             SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                          <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" 
                                                SortExpression="SkuDescr" meta:resourcekey="SkuDescr" >
                                                <ItemTemplate>
                                                    <asp:Label ID="lblSkuDescr" runat="server" 
                                                        Text='<%# Eval("SkuDescr").ToString() %>' 
                                                        meta:resourcekey="lblSkuDescr"></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_200" />       
                                             </asp:TemplateField>
                                         <asp:BoundField DataField="VendorID" HeaderText="供应商代码" FooterText="供应商代码" 
                                             SortExpression="VendorID" meta:resourcekey="VendorID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Lpn" HeaderText="LPN" FooterText="LPN" 
                                             SortExpression="Lpn" meta:resourcekey="LpnID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Loc" HeaderText="收货货位" FooterText="收货货位" 
                                             SortExpression="Loc" meta:resourcekey="ReceiveToLoc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:TemplateField FooterText="接收量" HeaderText="接收量" 
                                             SortExpression="ReceivedQty" meta:resourcekey="ReceivedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblReceivedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("ReceivedQty").ToString()) %>' 
                                                     meta:resourcekey="lblReceivedQtyResource2"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" 
                                             SortExpression="PackID" meta:resourcekey="PackID">
                                             <ItemStyle CssClass="GridViewRowWidth_50" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Uom" HeaderText="单位" FooterText="单位" 
                                             SortExpression="Uom" meta:resourcekey="Uom">
                                             <ItemStyle CssClass="GridViewRowWidth_50" />
                                         </asp:BoundField>
                                         <asp:TemplateField FooterText="上架数量" HeaderText="上架数量" 
                                             SortExpression="CompletedQty" meta:resourcekey="CompletedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblCompletedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("CompletedQty").ToString()) %>' 
                                                     meta:resourcekey="lblCompletedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:TemplateField FooterText="分配数量" HeaderText="分配数量" 
                                             SortExpression="AllocatedQty" meta:resourcekey="AllocatedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblAllocatedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("AllocatedQty").ToString()) %>' 
                                                     meta:resourcekey="lblAllocatedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="CondititonCode" HeaderText="货品属性" FooterText="货品属性" 
                                             SortExpression="CondititonCode" meta:resourcekey="CondititonCode">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="LotID" HeaderText="批次号" FooterText="批次号" 
                                             SortExpression="LotID" meta:resourcekey="LotID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
<%--                                         <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态" 
                                             SortExpression="Status" meta:resourcekey="Status">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>--%>                                         
                                         <asp:TemplateField HeaderText="状态" FooterText="状态" SortExpression="Status" 
                                             meta:resourcekey="Status" >
                                            <ItemTemplate>
                                                <asp:Label ID="lblStatus" runat="server" CssClass="label" 
                                                    Text='<%# Eval("Status") %>' ></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_50" />
                                        </asp:TemplateField>                                         
                                         <asp:BoundField DataField="IsPutAwayed" HeaderText="已上架" FooterText="已上架" 
                                             SortExpression="IsPutAwayed" meta:resourcekey="IsPutAwayed">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="IsGenPutAway" HeaderText="预上架" FooterText="预上架" 
                                             SortExpression="IsGenPutAway" meta:resourcekey="IsGenPutAway">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                            <asp:BoundField DataField="LotAttr01" HeaderText="批次属性01" FooterText="批次属性01" 
                                             SortExpression="LotAttr01" meta:resourcekey="LotAttr01">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                           <asp:BoundField DataField="LotAttr02" HeaderText="批次属性02" FooterText="批次属性02" 
                                             SortExpression="LotAttr02" meta:resourcekey="LotAttr02">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                              <asp:BoundField DataField="LotAttr03" HeaderText="批次属性03" FooterText="批次属性03" 
                                             SortExpression="LotAttr03" meta:resourcekey="LotAttr03">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                              <asp:BoundField DataField="LotAttr04" HeaderText="批次属性04" FooterText="批次属性04" 
                                             SortExpression="LotAttr01" meta:resourcekey="LotAttr04">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                              <asp:BoundField DataField="LotAttr05" HeaderText="批次属性05" FooterText="批次属性05" 
                                             SortExpression="LotAttr01" meta:resourcekey="LotAttr05">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                              <asp:BoundField DataField="LotAttr06" HeaderText="批次属性06" FooterText="批次属性06" 
                                             SortExpression="LotAttr01" meta:resourcekey="LotAttr06">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                              <asp:BoundField DataField="LotAttr07" HeaderText="批次属性07" FooterText="批次属性07" 
                                             SortExpression="LotAttr01" meta:resourcekey="LotAttr07">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                              <asp:BoundField DataField="LotAttr08" HeaderText="批次属性08" FooterText="批次属性08" 
                                             SortExpression="LotAttr01" meta:resourcekey="LotAttr01">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                              <asp:BoundField DataField="LotAttr09" HeaderText="批次属性09" FooterText="批次属性09" 
                                             SortExpression="LotAttr09" meta:resourcekey="LotAttr09">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                              <asp:BoundField DataField="LotAttr10" HeaderText="批次属性10" FooterText="批次属性10" 
                                             SortExpression="LotAttr10" meta:resourcekey="LotAttr10">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                             <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" 
                                                SortExpression="ProduceDate" meta:resourcekey="ProduceDate">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblProduceDate" runat="server" 
                                                        Text='<%# GetPreferenceShortDate(Eval("ProduceDate").ToString()) %>' 
                                                        meta:resourcekey="lblProduceDate"></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:TemplateField>
                                              <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" 
                                                SortExpression="ExpiryDate" meta:resourcekey="ExpiryDate">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblExpiryDate" runat="server" 
                                                        Text='<%# GetPreferenceShortDate(Eval("ExpiryDate").ToString()) %>' 
                                                        meta:resourcekey="lblExpiryDate"></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:TemplateField>
                                             <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" 
                                                SortExpression="ReceiptDate" meta:resourcekey="ReceiptDate">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblReceiptDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ReceiptDate").ToString()) %>' 
                                                      ></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle CssClass="GridViewRowWidth_100" />
                                            </asp:TemplateField>
                                             <asp:BoundField DataField="ExternalLot" HeaderText="外部批次号" FooterText="外部批次号" 
                                             SortExpression="ExternalLot" meta:resourcekey="ExternalLot">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                            
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr style="height:30px;">
                        <td></td>
                        <td></td>
                     </tr>
                 </table>               
                     <div style="margin-left: 10px">
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                                 <td class="Result_01">
                                     总计：
                                 </td>
                                 <td class="Result_02">
                                     <table>
                                         <tr>
                                            <td Style="margin-right: 20px;"> &nbsp; &nbsp; </td>
                                             <td >
                                                 <asp:Label ID="lblRHTotalReceived" runat="server" Text="接受数量:" class="label"></asp:Label><asp:Label
                                                     ID="lblRHTotalReceivedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalCompleted" runat="server" Text="上架数量:" class="label"></asp:Label>
                                                 <asp:Label ID="lblTotalCompletedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalAllocated" runat="server" Text="分配数量:" class="label"></asp:Label><asp:Label
                                                     ID="lblTotalAllocatedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                         </tr>
                                     </table>
                                 </td>
                                 <td class="Result_03">
                                 </td>
                             </tr>
                              <tr  style="height:20px">
                                <td></td>
                                </tr>
                         </table>
                     </div>                     
             </div>
             
             <div id="con_one_4" style="display: none; overflow-x:auto; overflow-y:hidden;">
                 <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td>
                             <table>
                                 <tr>
                                     <td>
                                         <asp:Button ID="btnConfirmPA" runat="server" CssClass="button" Enabled="False" 
                                             Text="<%$Resources:ButtonResource,btnConfirmPA%>" OnClientClick="blockScreen();" OnClick="btnConfirmPA_Click" 
                                            />
                                     </td>
                                     <td>
                                        <asp:Button ID="btnDeletePA" runat="server" CssClass="button" Enabled="False" 
                                             Text="<%$Resources:ButtonResource,btnDeletePA%>" OnClientClick="blockScreen();" OnClick="btnDeletePA_Click" 
                                             />
                                     </td>
                                 </tr>
                             </table>
                         </td>
                     </tr>
                     <tr style="height: 10px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr>
                         <td>
                             <div style="width:1200px; height:auto;">
                                 <asp:GridView ID="gvPutawayDetail" runat="server" AllowSorting="True" 
                                     AutoGenerateColumns="False" CssClass="gridview"  AllowPaging="True" OnPageIndexChanging="gvPutawayDetail_PageIndexChanging"
                                     DataKeyNames="TaskDetailID,ReceiptID,ReceiptLineID,Status,FromLoc,LotID,FromLpnID,LpnID,Qty,SkuID,SuggestLoc,UomID,OwnerID,PackID" 
                                     onrowdatabound="gvPutawayDetail_RowDataBound" Width="1350px" oninit="gvPutawayDetail_Init"  
                                     onsorting="gvPutawayDetail_Sorting" 
                                     meta:resourcekey="gvPutawayDetail">
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                         <PagerStyle CssClass="GridViewPageStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>
                                         <asp:TemplateField meta:resourcekey="TemplateField1">
                                             <HeaderTemplate>
                                                 <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('4021','gvPutawayDetail');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                 <asp:CheckBox ID="CheckBox1" runat="server" 
                                                     onclick="selectAll(this,'gvPutawayDetail');" 
                                                     meta:resourcekey="CheckBox1Resource3" />
                                             </HeaderTemplate>
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="chbSelect" runat="server" 
                                                     meta:resourcekey="chbSelectResource3" />
                                             </ItemTemplate>
                                             <FooterTemplate>
                                                 <asp:CheckBox ID="CheckBox2" runat="server" 
                                                     onclick="selectAll(this,'gvPutawayDetail');" 
                                                     meta:resourcekey="CheckBox2Resource3" />
                                             </FooterTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="TaskDetailID" HeaderText="任务号" FooterText="任务号" 
                                             SortExpression="TaskDetailID" meta:resourcekey="TaskDetailID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="StatusD" HeaderText="状态" FooterText="状态" 
                                             SortExpression="StatusD" meta:resourcekey="StatusD">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" 
                                             SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" 
                                             SortExpression="SkuDescr" meta:resourcekey="SkuDescr" >
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuDescr" runat="server" 
                                                    Text='<%# Eval("SkuDescr").ToString() %>' 
                                                    meta:resourcekey="lblSkuDescrResource2"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_200" />       
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="LotID" HeaderText="批次号" FooterText="批次号" 
                                             SortExpression="LotID" meta:resourcekey="LotID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="LpnID" HeaderText="LPN" FooterText="LPN" 
                                             SortExpression="LpnID" meta:resourcekey="LpnID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                                   <asp:TemplateField FooterText="上架数量" HeaderText="上架数量" 
                                             SortExpression="Qty" meta:resourcekey="Qty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("Qty").ToString()) %>' 
                                                     meta:resourcekey="lblQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>                                     
                                         <asp:BoundField DataField="UomID" HeaderText="单位" FooterText="单位" 
                                             SortExpression="UomID" meta:resourcekey="UomID">
                                             <ItemStyle CssClass="GridViewRowWidth_50" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="FromLoc" HeaderText="自货位" FooterText="自货位" 
                                             SortExpression="FromLoc" meta:resourcekey="FromLoc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="SuggestLoc" HeaderText="建议货位" FooterText="建议货位" 
                                             SortExpression="SuggestLoc" meta:resourcekey="SuggestLoc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:TemplateField HeaderText="确认货位" FooterText="确认货位" 
                                             meta:resourcekey="FinalLoc">
                                             <ItemTemplate>
                                                 <asp:TextBox ID="txtFinalLoc" CssClass="textbox" Width="120px" runat="server" 
                                                     Text='<%# Eval("FinalLoc").ToString() %>' 
                                                     meta:resourcekey="txtFinalLoc"></asp:TextBox>
                                             </ItemTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_150" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_150" />
                                         </asp:TemplateField>
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr style="height:30px;">
                        <td></td>
                        <td></td>
                     </tr>
                 </table>
                     <div style="margin-left: 10px">
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                                 <td class="Result_01">
                                     总计：
                                 </td>
                                 <td class="Result_02">
                                     <table>
                                         <tr>
                                            <td Style="margin-right: 20px;"> &nbsp; &nbsp; </td>
                                             <td  >
                                                 <asp:Label ID="lblPDTotal" runat="server" Text="上架数量:" class="label"></asp:Label><asp:Label
                                                     ID="lblPDTotalQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                         </tr>
                                     </table>
                                 </td>
                                 <td class="Result_03">
                                 </td>
                             </tr>
                              <tr  style="height:20px">
                                <td></td>
                                </tr>
                         </table>
                     </div>
             </div>
         </div>
        <%--</ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
        </Triggers>
        </asp:UpdatePanel>--%>
    </div>
    <input type="hidden" id="hdnReceiptID" runat="server" />
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnRtnValue" runat="server" />
    <input type="hidden" id="hdnAction" runat="server" />
    
    <input type="hidden" id="hiddenFlag" />    
    <input type="hidden" id="hiddenReportFlag" />    
            
          <div id="actionDiv" style="background-color:#FFFFFF; position:absolute;display:none;">
                 <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line"  id="tdlnkbtnReceiveall" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnReceiveall" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnReceiveall%>" 
                                 OnClientClick="blockScreen();" OnClick="lnkbtnReceiveall_Click" 
                                  ></asp:LinkButton>
                         </td>
                     </tr>
                      <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line"  id="tdlnkbtnAutoputaway" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnAutoputaway" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnAutoputaway%>" 
                                 OnClientClick="blockScreen();" OnClick="lnkbtnAutoputaway_Click" 
                                ></asp:LinkButton>
                         </td>                        
                     </tr>
                      <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line"  id="tdlnkbtnClose" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnClose" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnClose%>" 
                                 OnClientClick="blockScreen();" OnClick="lnkbtnClose_Click" ></asp:LinkButton>
                         </td>                          
                     </tr>   
                                        
                 </table>
           </div>
           <div id="reportDiv" style="background-color:#FFFFFF; position:absolute;display:none;">
                 <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line"  id="tdlnkbtnPrintReceipt" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnPrintReceipt" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnPrintReceipt%>" 
                                 OnClientClick="popPrintReceipt();" 
                                  ></asp:LinkButton>
                         </td>
                     </tr>
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                        <td class="line"  id="tdlnkbtnPrintPutAway" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnPrintPutAway" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnPrintPutAway%>" 
                                 OnClientClick="popPrintPutAway();" 
                                  ></asp:LinkButton>
                         </td>
                     </tr>
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                        <td class="line"  id="tdlnkbtnPrintReceiptList" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnPrintReceiptList" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnPrintReceiptList%>" 
                                 OnClientClick="popPrintReceiptList();" 
                                  ></asp:LinkButton>
                         </td>
                     </tr>
                 </table>
           </div>
           <input type="hidden" id="hdnDataFormat"  runat="server"/>  
           <input type="hidden" id="hdncalendarFlag"  runat="server"/>  
            <input type="hidden" id="hdnCreatedBy"  runat="server"/>  
    </form>
</body>


</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
	<!--
		hiddenDiv();
		hiddenReportDiv();
		hiddenCalendarDiv();
	//-->
</script>